package com.tsing.basic.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tsing.basic.entity.Role;
import com.tsing.basic.vo.req.*;
import com.tsing.basic.vo.resp.PermissionRespVo;
import com.tsing.basic.vo.resp.PermissionTreeRespVo;
import com.tsing.basic.vo.resp.RoleRespVo;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author TheTsing
 * @since 2021-03-29
 */
public interface IRoleService extends IService<Role> {

    void addRole(RoleAddReqVo reqVo);

    void deleteRole(IdsReqVo reqVo);

    RoleRespVo getRoleById(IdReqVo reqVo);

    void updateRole(RoleUpdateReqVo reqVo);

    Page<RoleRespVo> rolePage(RolePageReqVo reqVo);

    List<PermissionRespVo> getPermissionByRoleId(IdReqVo reqVo);

    List<PermissionTreeRespVo> getPermissionTree();

    void bindPermission(BindPermissionReqVo reqVo);

}
